package com.example.designPattern.factory.pizza;

public class ChinesePizza extends Pizza{
    private String name;
    @Override
    public String prepare() {
        System.out.println(name + " prepare");
        return name + " prepare";
    }

    @Override
    public String bake() {
        System.out.println(name + " bake");
        return name + " bake";
    }

    @Override
    public String box() {
        System.out.println(name + " box");
        return name + " box";
    }

    @Override
    public String cut() {
        System.out.println(name + " cut");
        return name + " cut";
    }

    public void setName(String name) {
        this.name = name;
    }
}
